package cn.itcast.test;

import cn.itcast.service.UserService;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.context.support.ClassPathXmlApplicationContext;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;

import javax.annotation.Resource;

/**
 * @author: cuisensen
 * data: 2018/6/14.
 * time: 1:30.
 */

public class Demo04 {
    @Test
    public void test1(){
        ClassPathXmlApplicationContext cpa=new ClassPathXmlApplicationContext("applicationContext.xml");
        UserService us= (UserService) cpa.getBean("userServiceAop");
        us.add();
    }
}
